// pages/zoufang/zoufang.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    
    show: false,
    time:"2018-01-01 ",
    startime:"2018-01-01",
    end:"2021-12-31",
    column: ['D1', 'D2', 'D3', 'D4'],
    tername:'',
    louhao: '',
    fang: '',
    beiname: '',
    qing: ''
  },

  onChange(event) {
    console.log(event.detail);
  },

  datachange:function(e){
      this.setData({
          time:e.detail.value
      });
  },

  onDateSelect(event){
    this.setData({
      currentDate: event.detail
    });
  },
  onTime(event) {
    this.setData({
      show:false
    });
  },

  onInput(event) {
    this.setData({
      currentDate: event.detail
    });
  },

  showPopup() {
    this.setData({ show: true });
  },

  onClose() {
    this.setData({ show: false });
  },


  bindter: function (event) {
    this.setData({ tername: event.detail.value })
  }, 
  bindstu: function (event) {
    this.setData({ stuname: event.detail.value })
  }, 
  bindfang: function (event) {
    this.setData({ fang: event.detail.value })
  }, 
  bindbei: function (event) {
    this.setData({ beiname: event.detail.value })
  }, 
  bindqing: function (event) {
    this.setData({ qing: event.detail.value })
  }, 

  order: function () {
    var time = this.data.time;
    console.log("时间：" +time);

    var tername = this.data.tername;
    console.log("教师：" +tername);

    var stuname = this.data.stuname;
    console.log("助理：" +stuname);

    var time = this.data.time;
    console.log("楼号：" +time);

    var fang =this.data.fang;
    console.log("房间：" +fang);

    var beiname = this.data.beiname;
    console.log("被访学生：" +beiname);

    var qing = this.data.qing ;
    console.log("情况：" +qing);

  },



  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})